﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Algorithms
{
    public abstract class Algorithm : IAlgorithm
    {
        protected int[] _sampleData;

        public void Execute(int[] sampleData)
        {
            _sampleData = sampleData;

            ExecuteAlgorithm(0, _sampleData.Length - 1);
        }

        protected abstract void ExecuteAlgorithm(int indexStart, int indexEnd);
    }
}
